package com.example.prison.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 *
 * @TableName area_record
 */
@TableName(value ="area_record")
@Data
public class AreaRecord implements Serializable {
    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 防区段编号
     */
    @TableField(value = "defense_section")
    private String defenseSection;

    /**
     * 防区段点位编号
     */
    @TableField(value = "defense_section_point")
    private String defenseSectionPoint;

    /**
     * 时间
     */
    @TableField(value = "time")
    private String time;

    /**
     * 电压1 电压值 实时电压值(正）
     */
    @TableField(value = "voltage1")
    private String voltage1;

    /**
     * 电压1状态
     */
    @ApiModelProperty(value = "电压1状态")
    @TableField(value = "status1")
    private String status1;

    /**
     * 电压2 电压值 实时电压值(负）
     */
    @TableField(value = "voltage2")
    private String voltage2;

    /**
     * 电压2状态
     */
    @ApiModelProperty(value = "电压2状态")
    @TableField(value = "status2")
    private String status2;

    /**
     * 电池1 电压值
     */
    @TableField(value = "battery_voltage")
    private String batteryVoltage;

    /**
     * 电池1 温度值
     */
    @TableField(value = "battery_t")
    private String batteryT;

    /**
     * 空气传感器1 温度值
     */
    @TableField(value = "air")
    private String air;

    /**
     * 输入电压
     */
    @TableField(value = "in_voltage")
    private String inVoltage;

    /**
     * 警情状态（断路/短路/触网）
     */
    @TableField(value = "alarm_status")
    private String alarmStatus;

    /**
     * 报警等级
     */
    @TableField(value = "alarm_level")
    private String alarmLevel;

    /**
     * 设备编号
     */
    @TableField(value = "device_number")
    private String deviceNumber;

    /**
     * 哨卫编号
     */
    @TableField(value = "sentry_post")
    private String sentryPost;

    /**
     * 哨位位置
     */
    @TableField(value = "sentry_address")
    private String sentryAddress;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
